<template>
		<view class="content" >
			<view class="item" @click="naviagteTo(item.id)" v-for="(item,index) in newsList" :key="index">
				<image class="img"  :src="item.img_url"></image>
				<view class="detailMg">
					<view class="description">
						{{item.zhaiyao}}
					</view>
					<view class="dateDndCounts">
						<text>发表时间:</text><text>{{item.add_time}}</text>
						<text>浏览:</text><text>{{item.click}}</text>
					</view>
				</view>
			</view>
		</view>
</template>

<script>
	export default {
		props:['newsList'],
		data() {
			return {
				
			}
		},
			
		filters:{
			formDate(){
				return 111
			}
		},
		methods: {
			naviagteTo(id){
				this.$emit('goDetail',id)
			}
		}
		
	}
</script>

<style lang="scss">
	.content{
		.item{
			padding: 6rpx 6rpx 10rpx;
			display: flex;
			width:100%;
			border-bottom: 1rpx solid $shop-color;
			.img{
				width:200rpx;
				height:150rpx;
				margin-top:10rpx;
			}
			.detailMg{
				width:500rpx;
				margin:0 auto;
				.description{
					font-size: 30rpx;
				}
				.dateDndCounts{
					margin-top:30rpx;
					font-size:26rpx;
					text:nth-child(2){
						margin: 0 12rpx;
					}
					text:nth-child(3){
						margin-right:12rpx;
						margin-left:20rpx;
					}
					text:nth-child(odd){
						color:#2C405A;
					}
					text:nth-child(even){
						color:$shop-color;
					}
				}
				
			}
		}
	}

</style>
